package tt.dz.service.imp.base;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.multipart.MultipartFile;

import tt.dz.dao.ext.base.OmsStoreFileDao;
import tt.dz.entity.base.JsonCommon;
import tt.dz.entity.base.JsonForList;
import tt.dz.entity.base.OmsCommonParam;
import tt.dz.entity.base.OmsStoreFile;
import tt.dz.service.base.FileUploadService;

@Service(value="commonFileService") @Transactional(propagation = Propagation.REQUIRED, rollbackFor = Exception.class)
public class CommonServerFileUploadServiceImpl extends FileBaseService implements FileUploadService{

	@Autowired
	public CommonServerFileUploadServiceImpl(	OmsStoreFileDao<OmsStoreFile> storeFileDaoImpl)
	{
		super();
		super.setStoreFileDaoImpl(storeFileDaoImpl);
	}
	@Override
	public JsonCommon<?> addFileUpload(MultipartFile file, String fileFuns, String entity, String prefixPath,
			String targerDir, String fileRequstPrefixPath, String createId,String fileId,String entityId) {
		return null;
	}

	@Override
	public JsonCommon<?> addFileoUpload(MultipartFile file, String fileFuns, String prefixPath, String targerDir,
			String fileRequstPrefixPath) {
		
		return null;
	}

	@Override
	public JsonCommon<?> addFile(String fileName, String remoteFileName, String downloadPath, String entityTbl,
			String entityId, String fileFunction, String createId) {
		
		return null;
	}

	@Override
	public JsonCommon<?> updateFile(String fileId, String fileName, String remoteFileName, String downloadPath,
			String entityTbl, String entityId, String fileFunction) {
		
		return null;
	}

	@Override
	public JsonCommon<?> deleteFile(String fileId) {
		
		return null;
	}

	@Override
	public JsonForList<?> findPageOrAll(OmsCommonParam params, OmsStoreFile findCondition) {
		
		return null;
	}

}
